<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title><%= title %></title>
    <link rel="stylesheet" href="/stylesheets/ziliao.css" type="text/css" media="screen"/>
    <script type="text/javascript" src="/javascripts/jquery.js"></script>
</head>
<body class="home blog custom-background">

<% if(!wanshan){ %>
    <h2 style="color: #fff;text-align: center;font-size: 36px;margin-top: 60px" >赶紧去《<a href="/u/<%= user.name %>">个人中心</a>》完善资料吧！</h2>
<% }else{ %>
<div id="wrap">
    <div id="header" class="clearfix">
        <div id="logo" class="sprite">
            <div class="sprite circle">
                <a title="个人资料">
                    <img src="/userFile/<%= user.name %>.jpg" onerror="this.src='/userFile/user.jpg'" alt="logo">
                </a>
            </div>
        </div>
        <div class="mod-right">
            <h1><a title="个人资料">个人资料</a></h1>
            <div class="description">
                我们的纪念
            </div>
            <div class="tools">
                <div class="menu-%e8%8f%9c%e5%8d%951-container">
                    <ul id="header_menu" class="clearfix">
                        <li id="menu-item-1879"
                            class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-1879">
                            <a>开始吧，宝贝们...</a></li>

                    </ul>
                </div>
            </div>

        </div>
    </div>
    <div id="main">
        <div class="post post-text  clearfix post-left">
            <div class="post-date">
                <%
                var date=new Date().getDate();
                var week=new Date().getDay();
                var xq=['星期日','星期一','星期二','星期三','星期四','星期五','星期六'];
                %>
                <span class="icon day"><%= date %></span>
                <span class="week">
			<a><%= xq[day] %></a>
		</span>
                <% var date=new Date() %>
                <span class="date"><%=date.getFullYear() %>/<%=  date.getMonth()+1 %>/<%= date.getDate() %></span>
            </div>
            <div class="post-content">
                <div class="sprite post-main-bg">
                    <div class="sprite post-main">
                        <div class="mod-txt mod-text">
                            <h4>
                                <a>姓名：<%= wanshan.name %></a><br>
                                <a>e-Mail：<%= wanshan.email %></a><br>
                                <a>tel：<%= wanshan.tel %></a>
                            </h4>
                            <h2>做真实的自我...</h2>
                        </div>
                    </div>
                </div>
                <div class="sprite post-meta">
                    <div class="author-avatar">
                        <img alt='' src='/images/ziliao/shanghai.jpg' class='avatar avatar-64 photo' height='64' width='64'/></div>
                    <h3>晴</h3>
                    <div class="tags">
                        <table>
                            <tbody>
                            <tr>
                                <td>
                                    <ul class="post-categories">
                                        <li><a rel="category">个人信息</a></li>
                                    </ul>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="like clearfix">
                        <a class="hot-num" href="">1943℃</a>
                    </div>
                </div>
            </div>
        </div>
        <div class="post post-text  clearfix post-right">
            <div class="post-date">
                <span class="icon day"><%= new Date().getDate() %></span>
                <span class="week">
                    <%
                    var xq=['星期日','星期一','星期二','星期三','星期四','星期五','星期六'];
                    var day=new Date().getDay();
                    %>
			<a><%= xq[day] %></a>
		</span>
                <% var date=new Date() %>
                <span class="date"><%=date.getFullYear() %>/<%=  date.getMonth()+1 %>/<%= date.getDate() %></span>
            </div>
            <div class="post-content">
                <div class="sprite post-main-bg">
                    <div class="sprite post-main">
                        <div class="mod-txt mod-text">
                            <h4>
                                <a>岗位：<%= wanshan.gangwei %></a><br>
                                <a>学历：<%= wanshan.xueli %></a><br>
                            </h4>
                            <h2 style="padding-top: 25px">曾经和未来的战斗场地...</h2>
                        </div>
                    </div>
                </div>
                <div class="sprite post-meta">
                    <div class="author-avatar">
                        <img alt='' src='/images/ziliao/zl.jpg' class='avatar avatar-64 photo' height='64' width='64'/></div>
                    <h3>晴</h3>
                    <div class="tags">
                        <table>
                            <tbody>
                            <tr>
                                <td>
                                    <ul class="post-categories">
                                        <li><a rel="category">奋斗场所</a></li>
                                    </ul>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="like clearfix">
                        <a class="hot-num" href="">406℃</a>
                    </div>
                </div>
            </div>
        </div>
        <div class="post post-text  clearfix post-left">
            <div class="post-date">
                <span class="icon day"><%= new Date().getDate() %></span>
                <span class="week">
                    <%
                    var xq=['星期日','星期一','星期二','星期三','星期四','星期五','星期六'];
                    var day=new Date().getDay();
                    %>
			<a><%= xq[day] %></a>
		</span>
                <% var date=new Date() %>
                <span class="date"><%=date.getFullYear() %>/<%=  date.getMonth()+1 %>/<%= date.getDate() %></span>
            </div>
            <div class="post-content">
                <div class="sprite post-main-bg">
                    <div class="sprite post-main">
                        <div class="mod-txt mod-text">
                            <h4>
                                <a>月薪：<%= wanshan.yuexin %></a><br>
                                <a>入职时间：<%= wanshan.ruzhiDate %></a><br>
                            </h4>
                            <h2 style="padding-top: 25px">芝麻开花节节高...</h2>
                        </div>
                    </div>
                </div>
                <div class="sprite post-meta">
                    <div class="author-avatar">
                        <img alt='' src='/images/ziliao/qc.jpg' class='avatar avatar-64 photo' height='64' width='64'/></div>
                    <h3>霾</h3>
                    <div class="tags">
                        <table>
                            <tbody>
                            <tr>
                                <td>
                                    <ul class="post-categories">
                                        <li><a rel="category">职场生活</a></li>
                                    </ul>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="like clearfix">
                        <a class="hot-num" href="">407℃</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<% } %>

<script type="text/javascript">
    $('.pages').hover(function () {
        $('.pages ul').stop().show('fast');
    }, function () {
        $('.pages ul').stop().hide('fast');
    });

    $('.search').hover(function () {
        $('.search .ipt-txt').stop().animate({width: 110});
    }, function () {
        if ($('.search .ipt-txt:focus').length == 0) {
            $('.search .ipt-txt').stop().animate({width: 1});
        }
    });
    $('.search .ipt-txt').blur(function () {
        $('.search .ipt-txt').stop().animate({width: 1});
    });
    var i = 2;
    var max_pages = 7;
    if (max_pages) {
        $('#load-more').click(function () {
            if ((max_pages / i) < 1) {
                this.className = 'nopages';
                this.innerHTML = 'The End';
                $(this).unbind('click');
                return false;
            }
            var _this = this;

            _this.className = 'loading';

            var url = '?action=ajax_post&pag=' + i;
            $.get(url, function (data) {
                i++;
                $('#main').append(data);
                _this.className = 'icon load-more';

                if ((pmax_pages / i) >= 1) {
                    _this.className = 'nopages';
                    _this.innerHTML = 'The End';
                    $(_this).unbind('click');
                }
            });
        })
    }
</script>

</body>
</html>